home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
machserver
/
1.098
/
rpc
/
ds3100.md
/
rpcDelays.c
< prev
Wrap
C/C++ Source or Header
|
1989-07-11
|
2KB
|
58 lines
/*
* rpcDelay.c --
*
* Get perferred machine dependent inter-packet delays for rpcs.
*
* Copyright 1988 Regents of the University of California
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
* fee is hereby granted, provided that the above copyright
* notice appear in all copies. The University of California
* makes no representations about the suitability of this
* software for any purpose. It is provided "as is" without
* express or implied warranty.
*/
#ifndef lint
static char rcsid[] = "$Header: /sprite/src/kernel/rpc/sun4.md/rpcDelays.c,v 1.1 89/06/05 10:35:01 brent Exp $ SPRITE (Berkeley)";
#endif not lint
#include "sprite.h"
#include "mach.h"
#include "sys.h"
/*
*----------------------------------------------------------------------
*
* RpcGetMachineDelay --
*
* Get preferred inter-fragment delay for input and output packets.
* This is approximately a microsecond value for how long this
* machine-type takes to turn a packet around.
*
* Results:
* None.
*
* Side effects:
* None.
*
*----------------------------------------------------------------------
*/
void
RpcGetMachineDelay(myDelayPtr, outputRatePtr)
unsigned short *myDelayPtr; /* Preferred delay in microseconds
* between successive input packets.
*/
unsigned short *outputRatePtr; /* Delay in microseconds between
* successive output packets.
*/
{
*myDelayPtr = 500; /* Same as sun3 value */
*outputRatePtr = 500;
return;
}